<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <%@ include file="/WEB-INF/jsp/common/common.jsp" %>
<head>
<link href="${pageContext.request.contextPath}/resource/css/def/frm/common/common.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/resource/css/def/frm/sys/authstyle.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/resource/css/def/ztree/metro.css" rel="stylesheet">
<script src="${pageContext.request.contextPath}/resource/js/jquery/plugin/jquery.ztree.all-3.5.min.js"></script>
<style type="text/css">
 #list2 .divout {
	border: 0;
	width: 150px;
	height: 30px;
	background: #d9ebf3;
	border-radius: 3px;
	box-shadow: none;
	text-align: center;
	padding-top: 0px;
	line-height: 30px;
	overflow:hidden;
	white-space: nowrap;
	text-overflow:ellipsis;
}
  #list2 .add-box {
    border: 1px dashed #ddd !important;
    border-radius: 3px;
    background-image:none;
    background-color: #fff;
    display: block;
}
.ordercheck-table {
	background-color: #fff;
	padding: 20px 20px 20px 20px;
	border: none;
	border-top: none;
}
 #list2 li {
	float: left;
	padding: 5px;
	width: auto;
	height: auto;
}
.pt15{ padding-top:15px;}
.clear{ clear:both;}
.modal-dialog{ width:600px; margin-right:auto; margin-left:auto;}
</style>
</head>
<body>
	<!-- 主区域  -->
	<div  class="orderchek-border">
		<div class="orderchek-title">数据权限分配</div>
		<div class="ordercheck-table">
		<div id="dataPermissionTo" class="clear">
		    <h4>选择授权组织</h4>
			<ul id="list2">
			    <li><div onclick="getOrg()" class="divout add-box"><span class="glyphicon glyphicon-plus" style="color: #ccc;margin-top: 6px;"></span></div></li>
			</ul>
			<div class="clear"></div>
		</div>
		<div id="dataPermissionShow" class="clear">
		    <h4 class="pt15">选择数据权限</h4>
			<ul id="list1">
			  <li><div onclick="add()" class="divout add-box" id="addDP"></div></li>
			  <div class="clear"></div>
			</ul>
		</div>
		</div>
		<center><button onclick="saveDP()" class="btn btn-info">保 存</button></center>
	</div>
	<!-- 主区域结束 -->
	
	<!-- 数据权限范围开始 -->
	<div class="modal fade" id="view" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">数据权限</h4>
            </div>
				<div class="modal-body">
					<form class="form-horizontal" role="form">
						<div class="form-group">
							<label for="dataPermissionType" class="col-sm-2 control-label"
								style="white-space: nowrap;">数据权限：</label>
							<div class="col-sm-10">
								<select class='form-control' id="dataPermissionTypenew"
									name="dataPermissionType" data-placeholder="数据权限类型">
								</select>
							</div>
						</div>
						<div class="form-group">
							<label  class="col-sm-2 control-label">说明：</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" id="introduction"
									name='dataIntroduction' placeholder="范围说明">
							</div>
						</div>
						<iframe id="mdiframe" width="100%"  frameborder="0" class="mt-10" scrolling="no" height="210px"></iframe>
					</form>
				</div>
				<!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
</div>
	<!-- 数据权限结束 -->
	
	<!-- 人员选择开始 -->
	<div class="modal fade" id="OrgModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">组织选择</h4>
            </div>
				<div class="modal-body" style="max-height: 460px;overflow-y: scroll;">
					<div class="checkbox">
					<label class="col-sm-5 control-label"> <input
						type="checkbox" id="linkBranch" onclick="Branch()">是否关联下级
					</label> 
				</div>
						<div class="clear"></div>
					<ul id="orgtree" class="ztree"></ul>
				</div>
				<div class="modal-footer"> 
            <center><button onclick="selectOrg()" class="btn btn-info">确 定</button></center>
        </div> 
				<!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
</div>
	<!-- 人员选择结束 -->
	
	
	
	
<script src="${pageContext.request.contextPath}/resource/js/frm/sys/sysMassDpToOrg.js"></script>
<title>数据权限分配</title>
<script type="text/javascript">
var pType="byorg";
</script>
</body>
</html>